<!doctype html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>默认的支付页面</title>
    <link href="./static/css/common.css" rel="stylesheet" type="text/css" />
    <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script src="./static/js/request.js"></script>
    <style>
    </style>
</head>

<body>
    <div class="dialog">
        <h2>默认的支付界面</h2>
        <script>
            var data = JSON.parse(JSBridge.getPayParams());
            for (var key in data) {
                document.write(`<p>${key}: ${data[key]}</p>`)
            }
            function testGetOrder() {
                request.getInstance().post("/v1.platform_order", data, function(res) {
                    console.log("res", JSON.stringify(res.data))
                    JSBridge.close();
                })
            }
        </script>
        <div style="text-align: center;width: 100%;">
            <input class="submit" type="submit" value="下单" onclick="testGetOrder()">
        </div>
    </div>
</body>

</html>